<div class="head">
    <header>
        <!--导航栏-->
        <nav class="head-nav navbar bg-white">
            <ul class="nav">
                <li class="nav-item">
                    <a class="navbar-brand" href="#">
                        <img src="__IMAGE__/钉钉.jpg" width="30" height="30" class="d-inline-block align-top" alt="" loading="lazy">最爱钉钉
                    </a>
                </li>
                <li class="nav-item">
                    <a class="nav-link active" href="/blog" tabindex="-1" aria-selected="true">技术</a>
                </li>
                <li class="nav-item">
                    <a class="nav-link" href="/question" tabindex="-1" aria-selected="false">问答</a>
                </li>
            </ul>
            <form class="form-inline">
                <input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
                <button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
            </form>
        </nav>
        <!--登录/注册-->
        {if ($Think.session.name) == (null)}
        <nav class="head-auth navbar bg-white">
            <a class="nav-link" href="/blog/article/editor">写文章</a>
            <a class="nav-link" href="/together/register/">登录/注册</a>
        </nav>
        {else /}
        <nav class="navbar head-auth  bg-white">
            <a class="navbar-brand bg-white" href="/blog/article/editor">写文章</a>
            <a class="navbar-brand bg-white" href="#" role="button">消息</a>
            <img src="__IMAGE__/头像/头像.jpg" id="dropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" style="width: 40px; height: 40px; border-radius: 50%;" rel="">
            <div class="dropdown-menu dropdown-menu-right" aria-labelledby="dropdownMenuLink">
                <a class="dropdown-item" href="/blog/me/me_info">个人中心</a>
                <a class="dropdown-item" href="/blog/me/me_blog_admin">博客管理</a>
                <a class="dropdown-item" href="/blog/me/me_account">账号设置</a>
                <a class="dropdown-item" href="/blog/admin/index">后台</a>
                <a class="dropdown-item" href="#">帮助</a>
                <a class="dropdown-item" href="/blog/index/logout">退出</a>
            </div>
        </nav>
        {/if}
    </header>
</div>